package com.cetcs.kmga.dataManager.util;

import javax.servlet.http.HttpServletRequest;

/**
 * 请求工具类
 *
 * @author xutao
 * @version V1.0 创建时间：2017-11-24 10:45
 *          Copyright 2017 by CETC
 */
public class RequestUtil {

    public static String getCurrentWebRootUrl(HttpServletRequest request) {
        String reqUrl = request.getRequestURL( ).toString();
        String conUrl = request.getServletPath( );
        String serUrl =  reqUrl.replace(conUrl,"");
        return serUrl;
    }
}
